package system

import (
	"myblog/app/controller/system/siteconfig"
	"myblog/app/service/middleware/auth"
	"myblog/app/service/middleware/router"
	"myblog/app/utils/email"
)

//加载路由
func init() {
	// 参数路由
	g1 := router.New("admin", "/system/siteconfig", auth.Auth)
	g1.GET("/", "system:siteconfig:view", siteconfig.List)
	g1.POST("/edit","system:siteconfig:view",siteconfig.Edit)
	g1.POST("/testemail","",email.TestEmail)
}
